package com.matt.foundation.vo.care;

import com.matt.domain.care.*;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;
import java.util.List;

@Data
public class HLDailyRecordVO{
    private String id;

    private Date created = new Date();

    private Boolean deleted = false;

    private Date createTime;

    private String childId;

    private String childName;

    private String daily;

    private Boolean granted = false;

    private String feedId;

    private Integer sleepCount;

    private Integer sleepStatusVal;

    private String sleepStatus;

    private Integer pottyCount;

    private Integer pottyStatusVal;

    private String pottyStatus;

    private Integer feedingCount;

    private Integer feedingStatusVal;

    private String feedingStatus;

    private Integer activityCount;

    private Integer activityStatusVal;

    private String activityStatus;

    private Integer medicationCount;

    private Integer medicationStatusVal;
 
    private String medicationStatus;

    private List<HLSleepRecord> sleepRecords;
    private List<HLPottyRecord> pottyRecords;
    private List<HLFeedingRecord> feedingRecords;
    private List<HLMedicationRecord> medicationRecords;
    private List<HLMoreRecord> hlMoreRecords;

    public static HLDailyRecordVO of(HLDailyRecord record){
        HLDailyRecordVO vo = new HLDailyRecordVO();

        BeanUtils.copyProperties(record, vo);

        return vo;
    }

}
